/*
 * @Author: wangqi 2629519506@qq.com
 * @Date: 2023-05-04 17:06:23
 * @LastEditors: cgl
 * @LastEditTime: 2023-07-29 15:34:35
 * @FilePath: \public-health-emergencies-fed:\radiation-hygiene-fe\src\api\slides\bind.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 查询滑片登记分页列表
export function bindingList(data) {
  return request({
    url: '/biz/slide/binding/list',
    method: 'post',
    data,
  })
}
// 查询滑片登记总列表
export function bindingListing(data) {
  return request({
    url: '/biz/slide/binding/listing',
    method: 'post',
    data,
  })
}
export function listByDosageNumber(dosageNumber) {
  return request({
    // url: '/basic/entrust/workingPersonnel/listByDosageNumber/' + dosageNumber,
    url: '/biz/slide/binding/' + dosageNumber,
    method: 'get',
  })
}

export function bindingAdd(data) {
  return request({
    url: '/biz/slide/binding/add',
    method: 'post',
    data
  })
}
export function getSlideBindingInfo(entrustOrganizationId) {
  return request({
    url: '/biz/slide/binding/getSlideBindingInfo/' + entrustOrganizationId,
    method: 'get',
  })
}
// 异常报备
export function addExceptionalRecord(data) {
  return request({
    // url: `/biz/exceptional/record/addExceptionalRecord/${taskPersonalResultId}/1`,
    url: `/biz/exceptional/record/addExceptionalRecord`,
    method: 'post',
		data
  })
}
// 删除绑定结果
export function bindingRemove(PersonalResultId) {
  return request({
    url: '/biz/slide/binding/remove/' + PersonalResultId,
    method: 'get',
  })
}